package com.exampleyyy.demoyyy.ShiTiYYY;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class AddressBook implements Serializable {
    private static final long serialVersionUID = 1L;
    // 在 AddressBook 类中找到 isDefault 字段，添加默认值
    private Integer isDefault = 0; // 或者根据业务需求设置其他默认值


    private Long id;
    private Long userId; //用户id
    private String consignee; //收货人
    private String provinceName;
    private String districtName;
    private String cityName;
    private String phone; //手机号
    private String sex; //性别 0 女 1 男
    private String detail; //详细地址
    private String label; //标签
//    private Integer isDefault; //是否默认 0否 1是

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(fill = FieldFill.INSERT)
    private Long createUser;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;
}